package com.cryrabbit.yyystitp.ui.activities;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.cryrabbit.yyystitp.R;
import com.cryrabbit.yyystitp.model.Tiezi;

import butterknife.BindView;
import butterknife.ButterKnife;

public class TiezicontentActivity extends AppCompatActivity {

    @BindView(R.id.tiezi_name)
    TextView tiezi_name;
    @BindView(R.id.tiezi_user)
    TextView tiezi_user;
    @BindView(R.id.tiezi_time)
    TextView tiezi_time;
//    @BindView(R.id.tiezi_uid)
//    TextView tiezi_uid;
    @BindView(R.id.tiezi_pay)
    TextView tiezi_pay;
    @BindView(R.id.tiezi_length)
    TextView tiezi_length;
    @BindView(R.id.tiezi_content)
    TextView tiezi_content;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tiezicontent);
        ButterKnife.bind(this);

        Tiezi data = getIntent().getParcelableExtra("tiezi");
        Log.d("tiezi", data.toString());

        tiezi_name.setText(data.getName());
        tiezi_user.setText(data.getUser());
        tiezi_time.setText(data.getTime());
        //tiezi_uid.setText(data.getUid());
        tiezi_pay.setText(data.getPay());
        tiezi_content.setText(data.getContent());
        tiezi_length.setText(data.getLength());

    }
}
